//
//  HJVoiceDto.m
//  KaiChat
//
//  Created by lx on 2023/10/21.
//

#import "HJMessageVoiceDto.h"
#import "HJChatMessageModel.h"

@implementation HJMessageVoiceDto

- (instancetype)initWithMessageModel:(HJChatMessageModel *)model {
    if (self = [super initWithMessageModel:model]) {
        NSDictionary *msssageDict = model.msg.mj_JSONObject;
        self.duration = @([msssageDict[@"duration"] intValue]);
        self.fileSize = msssageDict[@"fileSize"];
    }
    return self;
}

@end
